package com.example.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.example.common.R;
import com.example.model.req.AddOrderReq;
import com.example.model.resp.ListOrderResp;

public interface OrderService {
    // R<Boolean> getHaveBalance(Integer userId, Integer orderId);

    R<String> addOrder(AddOrderReq addOrderReq, HttpServletRequest requset);

    R<List<ListOrderResp>> getListOrderByUserId(HttpServletRequest request);

    R<String> completeOrder(Integer orderId);

    R<String> orderReback(Integer orderId, HttpServletRequest request);

    R<List<ListOrderResp>> pendingOrderList(HttpServletRequest request);

    R<List<ListOrderResp>> progressOrderList(HttpServletRequest request);

    R<List<ListOrderResp>> employeeOrderList(HttpServletRequest request);

    R<String> progressOrder(Integer orderId);

    R<List<ListOrderResp>> searchOrderListByDate(String startDate, String endDate, HttpServletRequest request);
}
